﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    class Program
    {
        static void Main(string[] args)
        {
            Console.WriteLine("-------------------------欢迎进入游戏世界！---------------------");
            Console.WriteLine("****************************************************************");
            Console.WriteLine("***************************猜拳，开始！*************************");
            Console.WriteLine("****************************************************************");
            Console.WriteLine("出拳规则：1，剪刀  2，石头  3，布");
            Console.WriteLine();
            Console.WriteLine("请选择对方角色：1：刘备 2：孙权 3：曹操");
            Computer computer = new Computer();
            string num = Console.ReadLine();
            switch (num)
            {
                case "1":
                    Console.WriteLine("刘备");
                    computer=new Computer("刘备");
                    break;
                case "2":
                    Console.WriteLine("孙权");
                    computer = new Computer("孙权");
                    break;
                case "3":
                    Console.WriteLine("曹操");
                    computer = new Computer("曹操");
                    break;
            }
            Users u = new Users();
            Console.WriteLine("请输入你的姓名：");
            u.Name = Console.ReadLine();

            Console.WriteLine($"{u.Name}  VS  {computer.Name}  对战");
            Console.WriteLine();
            Console.WriteLine("开始游戏吗？（Y/N）");
            string xuanze = Console.ReadLine();
            switch (xuanze)
            {
                case "Y":
                    Game game = new Game();
                    bool g = game.Gaming(computer,u);
                    
                    //返回gaming
                    break;
                case "N":
                    return;
                    break;
            }






            Console.ReadKey();

        }
    }
}
